package com.xiguaji.tiktok.v1.tiktok.collect.repository;

import com.xiguaji.tiktok.v1.tiktok.collect.model.ChallengeCollection;
import org.springframework.data.repository.CrudRepository;

import java.util.Optional;

public interface ChallengeCollectionRepository extends CrudRepository<ChallengeCollection,Long> ,ChallengeCollectionExtRepository{
    int countByUserId(long userId);

    Optional<ChallengeCollection> findByCidAndUserId(long cid,long userId);
}
